package com.by.car.xxljob;

import com.by.car.service.XxljobCarService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class XJobRun {
    @Autowired
    XxljobCarService xxljobCarService;

    @XxlJob("catToMysql")
    public void catToMysql() throws Exception{
        System.out.println("catToMysql任务 开始运行");
        xxljobCarService.catToMysql();

    }
}
